Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CMAKE_INSTALL_PREFIX #2482

Merged
merged 2 commits into from
Jan 26, 2025
Merged

Fix CMAKE_INSTALL_PREFIX #2482

merged 2 commits into from
Jan 26, 2025

Conversation

battlesnake
Copy link
Contributor

@battlesnake battlesnake commented Dec 19, 2024

forked + PR to test #2475

@battlesnake
Copy link
Contributor Author

CI workflow needs approval to trigger

@JonasVautherin
Copy link
Collaborator

What happens if you don't set CMAKE_INSTALL_PREFIX at all and let the default value be used? Feels weird to manually set /usr 🤔

@julianoes
Copy link
Collaborator

@JonasVautherin it has to be /usr otherwise it's /usr/local and would be wrong again.

You will have to add sudo to the install step though.

@@ -246,7 +246,7 @@ jobs:
sudo apt-get install -y ruby-dev
sudo gem install --no-document fpm
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_MAVSDK_SERVER=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=ON -Bbuild/release -H.
run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_MAVSDK_SERVER=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/ -DWERROR=ON -Bbuild/release -H.
- name: build
run: cmake --build build/release --target install -- -j2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this doesn't fail as it doesn't have sudo.

@julianoes julianoes merged commit ac06a03 into mavlink:main Jan 26, 2025
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants